
package com.one.odf.model;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for NOCBIOType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="NOCBIOType"&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="Language" type="{}NOCBIOLanguageType"/&gt;
 *       &lt;/sequence&gt;
 *       &lt;attribute name="Code" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
 *       &lt;attribute name="Current" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" /&gt;
 *       &lt;attribute name="ModificationIndicator" type="{}modificationIndicatorType" /&gt;
 *       &lt;attribute name="ExternalCode" type="{http://www.w3.org/2001/XMLSchema}string" default="" /&gt;
 *       &lt;attribute name="Name" type="{http://www.w3.org/2001/XMLSchema}string" default="" /&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NOCBIOType", propOrder = {
    "language"
})
public class NOCBIOType {

    @XmlElement(name = "Language", required = true)
    protected NOCBIOLanguageType language;
    @XmlAttribute(name = "Code", required = true)
    protected String code;
    @XmlAttribute(name = "Current", required = true)
    protected boolean current;
    @XmlAttribute(name = "ModificationIndicator")
    protected ModificationIndicatorType modificationIndicator;
    @XmlAttribute(name = "ExternalCode")
    protected String externalCode;
    @XmlAttribute(name = "Name")
    protected String name;

    /**
     * Gets the value of the language property.
     * 
     * @return
     *     possible object is
     *     {@link NOCBIOLanguageType }
     *     
     */
    public NOCBIOLanguageType getLanguage() {
        return language;
    }

    /**
     * Sets the value of the language property.
     * 
     * @param value
     *     allowed object is
     *     {@link NOCBIOLanguageType }
     *     
     */
    public void setLanguage(NOCBIOLanguageType value) {
        this.language = value;
    }

    /**
     * Gets the value of the code property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getCode() {
        return code;
    }

    /**
     * Sets the value of the code property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setCode(String value) {
        this.code = value;
    }

    /**
     * Gets the value of the current property.
     * 
     */
    public boolean isCurrent() {
        return current;
    }

    /**
     * Sets the value of the current property.
     * 
     */
    public void setCurrent(boolean value) {
        this.current = value;
    }

    /**
     * Gets the value of the modificationIndicator property.
     * 
     * @return
     *     possible object is
     *     {@link ModificationIndicatorType }
     *     
     */
    public ModificationIndicatorType getModificationIndicator() {
        return modificationIndicator;
    }

    /**
     * Sets the value of the modificationIndicator property.
     * 
     * @param value
     *     allowed object is
     *     {@link ModificationIndicatorType }
     *     
     */
    public void setModificationIndicator(ModificationIndicatorType value) {
        this.modificationIndicator = value;
    }

    /**
     * Gets the value of the externalCode property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getExternalCode() {
        if (externalCode == null) {
            return "";
        } else {
            return externalCode;
        }
    }

    /**
     * Sets the value of the externalCode property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setExternalCode(String value) {
        this.externalCode = value;
    }

    /**
     * Gets the value of the name property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getName() {
        if (name == null) {
            return "";
        } else {
            return name;
        }
    }

    /**
     * Sets the value of the name property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setName(String value) {
        this.name = value;
    }

}
